<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<title>D 生活</title>
    <%@include file="/views/common/include/taglib.jsp"%>
    <%@include file="/views/common/include/head.jsp"%>
    <link rel="stylesheet" href="${ctx}/css/page/person-my.css" type="text/css">
    <link rel="stylesheet" href="${ctx}/css/page/header2.css" type="text/css">
	<link rel="stylesheet" href="${ctx}/css/page/reset.css" type="text/css">
	<link rel="stylesheet" href="${ctx}/css/page/person-left.css" type="text/css">
	<link rel="stylesheet" href="${ctx}/css/page/footer.css" type="text/css">

<style>
    .house-add{border-radius:5px;}
    .house-add .layui-layer-title{height:63px;background:#95CFDA;line-height:63px;color:#fff;font-size:17px;text-align:center;border-radius:5px 5px 0 0;}
    .house-add .layui-layer-setwin .layui-layer-close1{width:25px;height:25px;}
</style>
<script src="${ctx}/js/controllers/base/ownerHouse/ownerHouseListController.js" type="text/javascript"></script>
</head>
	
<body>
	<jsp:include page="/views/common/head_main.jsp" />
	<div class="bg">
		<div class="contentbox1 contentbox">
			<div class="leftlist">
		        <div class="myorder left">
					<ul>
						<li><a class="order" href="${ctx}/orderInfo/orderInfoListByState" >我的订单</a></li>
						<li><a href="${ctx}/orderInfo/orderInfoListByState?states=0">待付款</a></li>
						<li><a href="${ctx}/orderInfo/orderInfoListByState?states=1">待商家确认</a></li>
						<li><a href="${ctx}/orderInfo/orderInfoListByState?states=2">待发货</a></li>
						<li><a href="${ctx}/orderInfo/orderInfoListByState?states=3,14">待收货</a></li>
						<li><a href="${ctx}/orderInfo/orderInfoListByState?states=6,7,8,10,11,12,13">退款售后</a></li>
					</ul>
				</div>
				<div class="myproperty left">
					<ul>
						<li class="order">我的物业</li>
						<c:if test="${displayFeeBill == 1}">
						<li><a href="${ctx}/propertyBill/getMyBill">我的物业费</a></li>
						</c:if>
						<c:if test="${displayCar == 1}">
						<li><a href="${ctx}/carBill/getCarManage">我的停车费</a></li>
						</c:if>
						<li><a href="${ctx}/propertyRepair/infoList">我的物业报修</a></li>
						<li><a href="${ctx}/propertySuggestion/infoList">我的物业投诉</a></li>
					</ul>
				</div>
				<div class="myassets left">
					<ul>
						<li class="order">我的资产</li>
					    <li><a href="${ctx}/ownerTreasure/ownerIntegralChangeList?state=0&pNo=1">我的积分</a></li>
						<li><a href="${ctx}/ownerTreasure/getCouponList?pNo=1">优惠券</a></li>
					</ul>
				</div>
				<div class="otherlist left">
					<ul class="others">
						<li class="order">其他</li>
						<li><a href="${ctx}/ownerOther/getMyCollection">我的收藏</a></li>
						<li><a href="${ctx}/ownerAddress/ownerAddressList">我的收货地址</a></li>
						<li><a href="${ctx}/complaintsInfo/infoList">我的投诉建议</a></li>
						<li><a style="color:red;" href="${ctx}/ownerHouse/ownerHouseList">我的小区</a></li>
						<!-- position需要跳转到特定位置 -->
						<li><a href="${ctx}/main?item=1#openShop">我要开店</a></li>
						<li><a href="${ctx}/usualQuestions/infoList">常见问题</a></li>
					</ul>
				</div>
			</div>
			<%-- <jsp:include page="/views/main/main_personal_left.jsp" /> --%>
            <div class="rightlist">
            <input type="hidden" id="item" value="${sessionScope.item_personal}"/>
                <div class="my-house">
                    <div class="padd1">
                        <span class="myOwnerHouse">我的房屋</span>
                        <a class="house-add" onclick="saveOrUpdate('添加房屋','/ownerHouse/editOwnerHouse')"><img src="${ctx}/images/page/my1.png" />房屋添加</a>
                    </div>
					<div>
					<c:forEach items="${cellInfoList }" var="cellInfo" varStatus="cellInfoStatus">
						    <div class="content">
						    <div class="mycell">
								<div style="display:inline"><img src="${ctx}/images/grzx/gr6.png"">${cellInfo.cellName}</div><c:if test="${cellInfo.id == cellId}"><div class="currentCell" style="display:inline">当前小区</div></c:if><br/>
							</div>
							</div>
							<c:forEach items="${cellInfo.houseList }" var="cellHouse" varStatus="cellHouseStatus">
								<c:if test="${cellHouseStatus.index != 0}">
									<div class="line"></div>
								</c:if>
								<div class="houseDetail" style="overflow:hidden;">
							    	<span class="houseName" >
							    		${cellHouse.regionName}${cellHouse.buildingName}${cellHouse.unitName}${cellHouse.name}室
							    	</span>
									<a class="deleteHouse" onclick="deleteOwnerHouse(${cellHouse.id});">注销房屋</a>
								</div>
							</c:forEach>
					</c:forEach>
					
					</div>
				</div>
			</div> 
		</div>
		
	</div>
	<jsp:include page="/views/common/footer.jsp" />
	<script src="${ctx}/js/lib/layer/layer.js"></script>
	<script src="${ctx}/js/lib/jquery.JPlaceholder.js"></script>
	<script type="text/javascript">
		var ctx = '${ctx}';
		setCtx(ctx);
	</script>	
</body>
</html>

